/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * OutputDialog.java
 *
 * Created on May 1, 2011, 4:18:34 PM
 */
package com.bff.mpd.musicjukebox.ui.settings;

import com.bff.bjj.ui.component.BJJDialog;
import com.bff.bjj.ui.component.BJJPanel;
import com.bff.mpd.utils.Utils;
import java.awt.Dimension;

/**
 *
 * @author Bill
 */
public class OutputDialog extends BJJDialog {

    /** Creates new form OutputDialog */
    public OutputDialog(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        setSize(new Dimension(640, 480));
        setLocationRelativeTo(parent);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new OutputPanel();
        jPanel2 = new BJJPanel();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle(Utils.getMessage("OUTPUTS_DIALOG_TITLE"));
        getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);

        jButton1.setText(Utils.getMessage("DIALOG_CLOSE"));
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jPanel2.add(jButton1);

        getContentPane().add(jPanel2, java.awt.BorderLayout.SOUTH);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
       dispose();
    }//GEN-LAST:event_jButton1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                OutputDialog dialog = new OutputDialog(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {

                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    // End of variables declaration//GEN-END:variables
}
